package com.anolesoft.yr.mbus.cont.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 回款计划表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "cont_payment")
public class ContPayment implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "objuid", type = IdType.INPUT)
    private String objuid;

    /**
     * 合同表主键
     */
    @TableField(value = "cont_main_uid")
    private String contMainUid;

    /**
     * 回款顺序号
     */
    @TableField(value = "order_code")
    private Byte orderCode;

    /**
     * 回款时间
     */
    @TableField(value = "payment_time")
    private Date paymentTime;

    /**
     * 币种
     */
    @TableField(value = "currency")
    private String currency;

    /**
     * 回款金额(非人民币)
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 回款状态
     */
    @TableField(value = "`state`")
    private Byte state;

    /**
     * 回款确认人
     */
    @TableField(value = "confirmer")
    private String confirmer;

    /**
     * 回款确认时间
     */
    @TableField(value = "confirmation_time")
    private Date confirmationTime;

    /**
     * 计划回款时间
     */
    @TableField(value = "plan_payment_time")
    private Date planPaymentTime;

    /**
     * 计划回款金额
     */
    @TableField(value = "plan_amount")
    private BigDecimal planAmount;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    private static final long serialVersionUID = 1L;

    public static final String COL_OBJUID = "objuid";

    public static final String COL_CONT_MAIN_UID = "cont_main_uid";

    public static final String COL_ORDER_CODE = "order_code";

    public static final String COL_PAYMENT_TIME = "payment_time";

    public static final String COL_CURRENCY = "currency";

    public static final String COL_AMOUNT = "amount";

    public static final String COL_STATE = "state";

    public static final String COL_CONFIRMER = "confirmer";

    public static final String COL_CONFIRMATION_TIME = "confirmation_time";

    public static final String COL_PLAN_PAYMENT_TIME = "plan_payment_time";

    public static final String COL_PLAN_AMOUNT = "plan_amount";

    public static final String COL_REMARK = "remark";
}